package nc.ui.pn.year;

import nc.ui.pn.pub.PlanControl;
import nc.ui.trade.button.IBillButton;
import nc.vo.bill.pub.JxPubBtnConst;
import nc.vo.jx.pub.JxPubConst;
import nc.vo.pn.year.PlanHVO;
import nc.vo.pn.year.PlanYearBVO;
import nc.vo.trade.pub.HYBillVO;

public class ClientController extends PlanControl {

    public String getBillType() {
        return JxPubConst.BILL_TYPE_PLAN_YEAR;
    }

    public String[] getBillVoName() {
        return new String[] { HYBillVO.class.getName(), PlanHVO.class.getName(),
                PlanYearBVO.class.getName() };
    }

    public int[] getCardButtonAry() {
        int[] buttonArray = new int[] { IBillButton.Add, IBillButton.Edit, IBillButton.Save,
                IBillButton.Cancel, IBillButton.Query, IBillButton.Action, IBillButton.Del,
                IBillButton.Line, IBillButton.Brow, IBillButton.Refresh, IBillButton.Return,
                IBillButton.Print, IBillButton.DirectPrint, JxPubBtnConst.LINKQUERY, JxPubBtnConst.IMPROT,IBillButton.ApproveInfo };
        return buttonArray;
    }

    public int[] getListButtonAry() {
        int[] buttonArray = new int[] { IBillButton.Add, IBillButton.Edit, IBillButton.Save,
                IBillButton.Cancel, IBillButton.Query, IBillButton.Action, IBillButton.Del,
                IBillButton.Line, IBillButton.Brow, IBillButton.Refresh, IBillButton.Card,
                IBillButton.Print, IBillButton.DirectPrint, JxPubBtnConst.LINKQUERY, JxPubBtnConst.IMPROT,IBillButton.ApproveInfo };
        return buttonArray;
    }

    public String getChildPkField() {
        return "cplanyearbid";
    }

    public String getPkField() {
        return "cplanid";
    }

}
